//1.获取当前页面的 浏览器中传递的producid参数
    //2.根据productid向后端发起请求,获取数据
    //3.获取数据之后渲染
    let infor=document.querySelector('.infor')
    let id=getQueryString('productid');
    let comment=document.querySelector('#comment')
    console.log(id)
    fetch('http://chst.vip:1234/api/getmoneyctrlproduct?productid='+id)
    
    .then(body=>body.json())
    .then(res=>{
        console.log(res);
        let r=res.result[0];
        let regExp = /(?<=imgurl=)[^'"]*/;
        let url=r.productImg2.match(regExp);
        let el_details=
        `<div class="title">
        <h4>${r.productName}</h4>
    </div>
    <div class="other">
        <span class="mall fl">${r.productFrom} | ${r.productTime}</span>
        <i>${r.productTips}</i>
    </div>
    <div class="container">
        <div>            
        <img width="200" height="200" src="${url[0]}">  
            ${r.productInfo2}  
                
        </div>       
    </div>
    <div class="bigimg">
        <img width="350" height="350" src="${url[0]}">
    </div>
    <div class="city">
        ${r.productCity}
    </div>`
        infor.innerHTML=el_details;
        let el_comment=`${r.productComment}`
        comment.innerHTML=el_comment;
    })